import { createAPI, createFormAPI } from '@/utils/request'

export const insertFodder = data => createFormAPI('/admin/fodder', 'post', data)
export const deleteFodder= data => createAPI(`/admin/fodder/${data.id}`, 'delete', data)
export const updateFodder= data => createAPI('/admin/fodder', 'put', data)
export const selectFodder= data => createAPI('/admin/fodder', 'get', data)
export const fodderNum= data => createAPI('/admin/fodderNum','get',data)
